Update User Detail
PUT : http://<base_url>/digipay/v3/user/user_detail
This API used to Update new User Data into the system
BODY PARAMS:-
Parameter | Type | Description | Value |
---|---|---|---|
id | String | Unique id assign to user retrive a user details | 64b835cb80b542d199c47caf5ccd4351 |
first_name | String | first name of user | John |
last_name | String | last name of user | Deo |
password | String | password of user | 123 |
String | email of user | abc.123@email.com | |
dial_code | String | dial code of country | +91 |
phone_number | String | phone number of user | 98989865 |
login_pin | String | login pin use to sign in to account | 123 |
transaction_pin | String | transaction of amount transfer to another account | 1234 |
user_type | Int | Interger type of user | 2 |
role_id | String | unqiue id assigned to role detail | 1234 |
updated_date | String | a unix date of time | 1234 |
device_info | Raw Json | device info of user device | |
verification | Raw Json | verify to user detail | |
status_id | Int | 2 | |
birth_date | Int | 1078203600 | |
image | string | image URl | |
country_id | string | unique id assign to country retrive a country detail | 123 |
kyc_status | Int | 2 | |
kyc_process_status | Int | 2 | |
location_point | Raw Json | ||
rating | Double | 4.5 | |
account_number | String | unique number assign to bank account of differnt user | 12333456789 |
parent_user_id | String | Parent user ID | 2 |
display_name | String | Display name | abc |
kyc_status_id | String | unique id assign to kyc status retrive to kyc status detail | 123 |
HEADERS:-
Parameter | Type | Description | Value |
---|---|---|---|
Authorization | String | It is a combination of type and token to authenticate user for the given token | Token duik7309njdlkhdauhknksadhjkas986876sd873j |
CompanyID | String | Company_id is a unique primary id, that is represent company detail | 76bc712200ca444fa334f9e55e5fd7a8 |
Request Body:-
Request Example
curl --request PUT \
--url http://192.168.1.102:8014/digipay/v3/user/user_detail \
--header 'Authorization: Token eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI2NWY0ZDI1MDliZmU0NTBmYTg4MTVhNTU5Njk3YmM0NyIsInJvbGVzIjpbIlJPTEVfQURNSU4iXSwiZXhwIjoxNjkzNTIxOTU1fQ.9oWwUzlFzmYB1ZOhaVamxKJH6DsMO8tFue2kbg2YyoI' \
--header 'CompanyID: 76bc712200ca444fa334f9e55e5fd7a8' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": "64b835cb80b542d199c47caf5ccd4351",
"first_name": "john",
"last_name": "Doe",
"password": "S6f1zR",
"email": "abc.123@email.com",
"dial_code": "+91",
"phone_number": "98989865",
"login_pin": "123",
"transaction_pin": "1234",
"user_type": 2,
"role_id": "1234",
"updated_date": "1658471218",
"verification": {},
"status_id": 2,
"birth_date": 1078203600,
"image": "Image url",
"country_id": "123",
"kyc_status": 2,
"kyc_process_status": 1,
"location_point": {},
"rating": 4.5,
"account_number": "12333456789",
"parent_user_id": "123",
"display_name": "abc",
"kyc_status_id": "123"
}
'
Response:-
Response 200(OK)
{
"success": 1,
"error": [],
"data": {
"message": "User detail updated successfully."
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}
RESPONSES :-
Status Code | Description |
---|---|
200 | OK |
400 | Bad Request |
404 | Not Found |
500 | Internal Server Error |